package br.com.unifor.dctree.dc;

public class Feature {

	private double weight;
	private String value;
	
	public Feature(){
		
	}
	
	public Feature(int weight, String value){
		this.weight = weight;
		this.value = value;
	}

	public double getWeight() {
		return weight;
	}

	public void setWeight(double weight) throws OutOfRangeException{
		//if(weight == 0 || weight ==1)
			this.weight = weight;
		//else
		//	throw new OutOfRangeException(weight);
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}
	
}
